package com.hangsu.train.components.dao;

import com.hangsu.train.components.entity.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface TaskDao {

    int deleteByPrimaryKey(Long id);

    int insert(Task record);

    int insertSelective(Task record);

    Task selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Task record);

    int updateByPrimaryKey(Task record);

    List<Task> all();

    List<Task> list(@Param("task") Task task, @Param("skip") long skip, @Param("limit") int limit );

    long count(@Param("task") Task task);
}